package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.entity.req;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 报到流程步骤表
 * </p>
 *
 * @author XYHT
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_wns_registration_process_detail")
@ApiModel(value="SmsWnsRegistrationProcessDetail对象", description="报到流程步骤表")
public class SmsWnsRegistrationProcessDetailReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学生步骤id")
    private String id;

    @ApiModelProperty(value = "学生userId")
    private String userId;

    @ApiModelProperty(value = "步骤配置id")
    private String processId;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "步骤顺序，用于排列报到流程的先后次序")
    private Integer sort;

    @ApiModelProperty(value = "步骤状态(0.未完成 1.进行中 2.已完成 3.失败)")
    private Integer status;

    @ApiModelProperty(value = "审批人userId")
    private Boolean allowUserId;

    @ApiModelProperty(value = "审批意见")
    private String allowOpinion;

    @ApiModelProperty(value = "审批时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date allowTime;

    @ApiModelProperty(value = "审批状态(0：待办  1：通过  2：驳回)")
    private String allowType;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
